package com.googlecode.slm.daomapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.googlecode.slm.domain.dao.User;

/**
 * Created by IntelliJ IDEA.
 * User: liguangjian
 * Date: 11-10-8
 * Time: 下午8:24
 * To change this template use File | Settings | File Templates.
 */
public interface UserMapper {

    public int reg(User user);

    public User login(User user);
    
    /**
     * 查询用户数据
     * @param srows 开始条数
     * @param erows 结束条数
     * @return
     */
    public List<User> getAll(@Param("srows") int srows, @Param("erows") int erows);
    
    /**
     * 统计用户数据条数
     * @return
     */
    public int countUser();
    
    public int delete(int id);
}
